import { Column, Entity, Index } from "typeorm";
import {CommonEntity} from "~/common/entity/common.entity";

/**
 * 分享记录
 */
@Index(["id"])
@Entity({name: "share-record"})
export class ShareRecordsEntity extends CommonEntity {
	// 访问人ID，关联分享内容ID，分享人ID

	// 访问人ID
	@Column({type: "int", comment: "访问人ID"})
	visitorId: number;

	// 关联分享内容ID
	@Column({type: "int", comment: "关联分享内容ID"})
	shareContentId: number;

	// 分享人ID
	@Column({type: "int", comment: "分享人ID"})
	shareUserId: number;
}